const app = getApp(); 
Page({
  data: {
    list:'',
    resourceUrl: app.globalData.apiUrl + '/public/uploads/goods/',
  },
  onLoad: function () {
    var that = this;
    wx.request({
      url: app.globalData.apiUrl+'/api/goods/groupGoodsList',
      method: 'GET',
      dataType: 'json',
      success: function(res) {
        console.log(res)
        that.setData({list:res.data})
      },
      fail: function(res) {},
      complete: function(res) {},
    })
  }
})